[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GETX() (INTEGER)

 Function
  Report the X coordinate (column) of the cursor on screen.

 Syntax
  GETX()   No arguments are required

 Return Type & Value
  INTEGER
  Returns the column (1-80) of the cursor on screen.

 Remarks
  This function is used to query the ANSI emulator in PCBoard the current
  X position of the cursor.  It may be used for saving the cursor position
  for future use or for saving the horizontal cursor position while
  changing the vertical position with the ANSIPOS statement.

 Examples
  INTEGER x,y
  STRING s

  WHILE (UPPER(s) <> "QUIT") DO

    INPUT "Text",s
    PRINTLN " - ",s

    LET x = GETX()
    LET y = GETY()
    IF (y = 23) THEN
      CLS
      LET x = GETX()
      LET y = GETY()
    ENDIF

    ANSIPOS 40,23
    PRINT "@X8Fs=",s
    ANSIPOS x,y

  ENDWHILE

See Also: ANSIPOS ANSION() BACKUP FORWARD GETY() GRAFMODE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson